package com.jwater.core.net.group;
/**
 * @description:
 * @author: jnner
 * @createDate: 2021/2/5
 * @version: 1.0
 */
public class DataItemEvent {
	public static final String TYPE_STORE = "store";
	public static final String TYPE_REMOVE = "remove";

	private String type;
	private String key;
	private String itemKey;
	private long version;
	private String data;

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getItemKey() {
		return itemKey;
	}

	public void setItemKey(String itemKey) {
		this.itemKey = itemKey;
	}

	public long getVersion() {
		return version;
	}

	public void setVersion(long version) {
		this.version = version;
	}

	public String getData() {
		return data;
	}

	public void setData(String data) {
		this.data = data;
	}

	@Override
	public String toString() {
		return "DataItemEvent [type=" + type + ", key=" + key + ", itemKey=" + itemKey + ", version=" + version
				+ ", data=" + data + "]";
	}
}
